package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.Department;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 */
public interface DepartmentMapper extends BaseMapper<Department> {


    /**
     * 查询所有的部门数据
     * @param id
     * @return
     */
    List<Department> selectDepartmentAll(Integer id);

    /**
     * 添加部门
     * @param department
     * @return
     */
    int addDepartment(Department department);

    int deleteDepartment(Integer id);
}
